package com.intellij.licensecommon.util;

public class h {
    public static final int a = -1;
    public static final int b = 1;
    public static final int c = 4;
    public static final int d = 5;
    public static final int e = 6;
    public static final int f = 7;
    public static final int g = 8;
    private static final String h = "IDEA";
    private static final String i = "RUBYMINE";
    private static final String j = "PYCHARM";
    private static final String k = "WEBSTORM";
    private static final String l = "PHPSTORM";
    private static final String m = "APPCODE";

    public static String a(int paramInt) {
        switch (paramInt) {
            case 1:
                return "IDEA";
            case 4:
                return "RUBYMINE";
            case 5:
                return "PYCHARM";
            case 6:
                return "WEBSTORM";
            case 7:
                return "PHPSTORM";
            case 8:
                return "APPCODE";
        }
        throw new IllegalArgumentException("Unknown product:" + paramInt);
    }

    public static int a(String paramString) {
        if ("IDEA".equals(paramString)) {
            return 1;
        }
        if ("RUBYMINE".equals(paramString)) {
            return 4;
        }
        if ("PYCHARM".equals(paramString)) {
            return 5;
        }
        if ("WEBSTORM".equals(paramString)) {
            return 6;
        }
        if ("PHPSTORM".equals(paramString)) {
            return 7;
        }
        if ("APPCODE".equals(paramString)) {
            return 8;
        }
        throw new IllegalArgumentException("Unknown product:" + paramString);
    }
}
